#!/bin/bash
# c style for
echo "example for C style for:"
for((a=1;a<10;a++))
do
	echo "a = $a"
done

#multiple variables
echo
echo "example for multiple variables in C style for:"
for((a=1,b=10; a<=10; a++,b--))
do
	echo "$a - $b"
done

#nested 
echo $'\n' "example for nested C style for:"
for((a=1;a<=3;a++))
do
	echo "Starting loop $a:"
	for((b=1;b<=3;b++))
	do
		echo " Inside loop: $b"
	done
done
